<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page language="java" import="org.jdom.*,com.uft.utils.*,java.util.*"
	errorPage="error.jsp"
%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ page isELIgnored="false"%>

<div id="xml_editor">
	<xml xmlns:xs="http://www.w3.org/2001/XMLSchema"> </xml>
</div>

<script>
	$(function() {
		var extractor = new Xsd2Json("WasConfigTemplate.xsd", {"schemaURI":"xsd/" });
		$("#xml_editor").xmlEditor({
			schema: extractor.getSchema(),
			ajaxOptions: {
						xmlUploadPath: "addWasConfigFile/${configProp.id}.htm",
						xmlRetrievalPath:"getWasConfigFile.htm?id=${configProp.id}"
			}
		});
	});
</script>